<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>功能模块管理</title>
  <link rel="stylesheet" href="${ctx}/static/admin/layui/css/layui.css">
	<link rel="stylesheet" href="${ctx}/static/admin/css/formSelects-v4.css">
  <link rel="stylesheet" href="${ctx}/static/admin/css/sidebar.css">
  <link rel="stylesheet" href="${ctx}/static/admin/css/switch.css">
  <style>
      /* 偶数行背景色 */
      .layui-table-click,.layui-table[lay-even] tr:nth-child(even) {
          /* background-color: #aaffaa; */
          background-color: #e0e0e0;
      }

      /* 鼠标指向表格时,奇数行背景颜色 */
      .layui-table tbody tr:hover,.layui-table-hover {
          background-color: #e0e0e0;
      }

      /* 表格头部工具栏背景色 */
      /*.layui-table-tool {
          background-color: #eeffee;
      }*/

      /* 表格头部背景色 */
      /*th {
          background-color: #359f6a; !* MediumSeaGreen *!
          color: #fff;
          font-weight: bold
      }*/
  </style>
</head>
  <body>
    <form class="layui-form">
      <div id="searchForm" class="layui-form-item">
      </div>
    </form>
	<div class="layui-card-body">
        <!--
		<#button permission="" id="add" size="layui-btn-sm" textName="新增" event="add"/>
		<#button permission="" id="import" size="layui-btn-sm" textName="导入" event="import"/>
		<#button permission="" id="export" size="layui-btn-sm" textName="导出" event="export"/>
        -->
		<#button permission="${module.url!}btnadd" id="add" size="layui-btn-sm" textName="新增" event="add"/>
		<#button permission="${module.url!}btnimport" id="import" size="layui-btn-sm" textName="导入" event="import"/>
		<#button permission="${module.url!}btnexport" id="export" size="layui-btn-sm" textName="导出" event="export"/>
		<#button permission="${module.url!}btndel" id="delAll" iconCls="layui-btn-danger" size="layui-btn-sm" textName="删除" event="delAll"/>

		<table id="modulestable" lay-filter="modules"></table>
	</div>
  </body>
</html>
<script src="${ctx}/static/admin/layui/layui.js"></script>
<script src="${ctx}/static/admin/js/common.js"></script>
<script type="text/html" id="toolbar">

{{#
if('${module.if_attach!}' == '1'){
}}
<#button permission="${module.url!}btnattach" iconCls="layui-btn-normal" size="layui-btn-xs" textName="附件管理" event="attach"/>
{{#
}
}}
<#button permission="${module.url!}btndetail" iconCls="layui-btn" size="layui-btn-xs" textName="详情" event="detail"/>
<#button permission="${module.url!}btnedit" iconCls="layui-btn-warm" size="layui-btn-xs" textName="编辑" event="edit"/>
<#button permission="${module.url!}btndel" iconCls="layui-btn-danger" size="layui-btn-xs" textName="删除" event="del"/>
<!--
{{#
if('${module.if_attach!}' == '1'){
}}
<#button permission="" iconCls="layui-btn-normal" size="layui-btn-xs" textName="附件管理" event="attach"/>
{{#
}
}}
<#button permission="" iconCls="layui-btn" size="layui-btn-xs" textName="详情" event="detail"/>
{{#
if(d.createuser == ${session.sysUser.id}){
}}
<#button permission="" iconCls="layui-btn-warm" size="layui-btn-xs" textName="编辑" event="edit"/>
<#button permission="" iconCls="layui-btn-danger" size="layui-btn-xs" textName="删除" event="del"/>
{{#
}
}}
-->
</script>
<script type="text/html" id="enabled">
  <input type="checkbox" name="status" lay-filter="status" value="{{d.status}}" lay-skin="switch" lay-text="启用|禁用" {{ d.status == 1 ? 'checked' : '' }}>
</script>
<script type="text/javascript">
    var ctx = '${ctx}', moduleid = '${module.id!}', moduleurl = '${moduleurl!}', tablename = "${module.wholetablename!}",userid = ${session.sysUser.id};
</script>
<script src="${ctx}/static/admin/service/list.js"></script>